//package fr.graffitiresearchlab;

// Letters
final static char[] lettersDef = {
  'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'
}; 

class Font {
  // Infos
  String artist;
  String name;
  String info;
  String keywords;

  // Collection of letters  
  HashMap<String, Letter> letters;

  // Constructor
  Font(String artist, String name) {
    this.artist  = artist;
    this.name    = name;
    this.letters = new HashMap<String, Letter>();
    resetLetters();
  }

  // getLetter
  Letter getLetter(char c)
  {
    return this.letters.get(""+c);
  }


  // setLetter
  void setLetter(Letter letter) {
    this.letters.put(""+letter.c, letter);
  }

  // resets all letters in the font
  void resetLetters() {
    for (int i=0;i<lettersDef.length;i++)
    {
      char c = lettersDef[i];
      this.letters.put(""+c, new Letter(c));
    }
  }
};
